package com.uinfor.controller;

import com.uinfor.service.IAccountService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.math.BigDecimal;

/**
 * @descripttion:
 * @Author: WZH
 * @Date :2021/2/5  17:35
 **/
@RestController
public class AccountController {
    @Resource
    private IAccountService iAccountService;
    @PostMapping("/account/decrease")
    public void decrease(Long userId, Double money){
        iAccountService.decrease(userId,money);
    }
}
